package com.liner.homework.third.person;


public class PersonTest {
    public static void main(String[] args) {
        Doctor doctor = new Doctor("Alice", 23, "天津","妇产科医生");
        Teacher teacher = new Teacher("Jack", 41, "江苏", 4000);
        Student student = new Student("Tom", 18, "南京", "高三","5110");

        doctor.sayHi();
        doctor.cut();
        teacher.sayHi();
        teacher.teach();
        teacher.eat();
        student.sayHi();
        student.study();
        student.sleep();


    }
}
